package controller.dao;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class Factory {
	static EntityManagerFactory factory;
	
	static EntityManagerFactory factory(){
		if(factory == null){
			factory = Persistence.createEntityManagerFactory("Loja2");
		}
		return factory;
	}
}
